import BasePlugin from "@/core/Frame/BaseClass/BasePlugin"
import DrawAddCommand from "./DrawAddCommand";
import DrawControlCommand from "./DrawControlCommand";
import EditControlCommand from "./EditControlCommand";

class DrawPlugin extends BasePlugin {
	constructor() {
		super()
	}
	// 注册命令
	registerCommands() {
		this.addCommand(DrawAddCommand);
		this.addCommand(DrawControlCommand);
		this.addCommand(EditControlCommand)
	}
	// 订阅事件 
	registerEvents() {
		this.subscribeEvent('layerChanged');
	}
	// 接收事件
	handleEvent(eventType: string, args: any) {
		if (eventType === 'layerChanged') {
			// console.log(args)
		}
	}
	destroy(){
		// debugger
	}
}
	
export default DrawPlugin

